package com.team11.server.controller.student;


import com.team11.server.pojo.dto.RespPageBean;
import com.team11.server.service.IAInformationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.time.LocalDate;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author
 * @since
 */
@CrossOrigin
@RestController
@RequestMapping("student")
@Api(tags = "学生接口")
public class StudentAInformationController {
    @Autowired
    private IAInformationService iaInformationService;

    @ApiOperation("考勤管理：获取项目考勤记录表")
    @PostMapping("/getStudentAttendance")
    public RespPageBean getStudentAttendance(@RequestParam(defaultValue = "1") Integer currentPage,
                                             @RequestParam(defaultValue = "10") Integer size,
                                             @RequestParam("sNumber") String sNumber,
                                             String kcName, String aState, LocalDate startTime,LocalDate endTime){
        return iaInformationService.getStudentAttendance(currentPage,size,sNumber,kcName,aState, startTime,endTime);
    }
}
